import request from '@/utils/request'
import {parseStrEmpty} from "@/utils/ruoyi";

// 查询包
export function selectFirmwareInfoList(query) {
  return request({
    url: '/device/firmwareInfo/selectFirmwareInfoList',
    method: 'get',
    params: query
  })
}

//查询详情
export function selectFirmwareInfo(uid) {
  return request({
    url: '/device/firmwareInfo/selectFirmwareInfo/' + parseStrEmpty(uid),
    method: 'get',
  })
}

//删除包
export function delFirmwareInfo(data) {
  return request({
    url: '/device/firmwareInfo/delFirmwareInfo',
    method: 'post',
    data: data
  })
}

//修改包

export function updateFirmwareInfo(data) {
  return request({
    url: '/device/firmwareInfo/updateFirmwareInfo',
    method: 'post',
    data: data
  })
}

//插入包
export function insertFirmwareInfo(data) {
  return request({
    url: '/device/firmwareInfo/insertFirmwareInfo',
    method: 'post',
    data: data
  })
}
